/*
 * Copyright (c) 2008-2021 浩瀚深度 All Rights Reserved.
 *
 * <p>FileName: BusinessException.java</p>
 *
 * @author zz
 * @date 2024/2/7
 * @version 1.0
 * History:
 * v1.0.0 2024/2/7 Create
 */
package com.monitor.base;

import lombok.extern.slf4j.Slf4j;

/**
 * <p>Title: BusinessException</p>
 * <p>Description: </p>
 *
 * @author zz
 */
@Slf4j
public class BusinessException extends RuntimeException {

    private static final long serialVersionUID = 4946104993715979220L;

    /**
     * @param msg 异常信息
     */
    public BusinessException(String msg) {
        super(msg);
        log.error(msg);
    }

    /**
     * @param msg   异常信息
     * @param cause 异常堆栈
     */
    public BusinessException(String msg, Throwable cause) {
        super(msg, cause);
        log.error(msg);
    }

    /**
     * @param cause 异常堆栈
     */
    public BusinessException(Throwable cause) {
        super(cause);
    }
}
